<?php
$mysqli= new mysqli("localhost","root","root","db_yemaijiu");
if($mysqli->connect_errno){
    die();
}
$id=$_GET["user-id"];
$result=$mysqli->query("select * from t_car where user_id={$id}");

// while($row=$result->fetch_assoc()){
//     $data[]=$row;
// }
$data=$result->fetch_all(MYSQLI_ASSOC);
echo json_encode($data);
// var_dump($data);
